package com.gzx.plugin.tjzy.feign.debtor.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gzx.tjzy.feign.req.debtor.GzxDebtorInfoReqDto;
import org.apache.ibatis.annotations.Insert;

/**
 * @author zjt
 * @description
 * @since 2025/2/13 09:58
 */
public interface GzxDebtorInfoFeignMapper extends BaseMapper<GzxDebtorInfoReqDto> {

    /**
     * 批量新增欠款人信息
     *
     * @param batchSql
     */
    @Insert("<script>" +
            "INSERT ignore INTO gzx_debtor_info (project_code, debtor_name, debtor_sex, debtor_phone, debtor_card_id, " +
            "real_debtor_card_id, debtor_birth, debtor_age, debtor_province, debtor_city, debtor_address, " +
            "debtor_now_address, debtor_account_balance,tenant_id,create_time) " +
            "VALUES ${batchSql}" +
            "</script>")
    void insertBatch(String batchSql);
}
